/*
 * @Date: 2023-03-10 19:57:44
 * @Description:
 */
import { MockMethod } from "vite-plugin-mock";

export default [
  {
    url: `/mock/menu/list`,
    method: "post",
    response: () => {
      return {
        statusCode: 200,
        data: {
          list: [
            {
              path: "/",
              redirect: "/dashboard",
              meta: {
                title: "dashboard",
                icon: "sfont system-home",
              },
              children: [
                {
                  path: "dashboard",
                  meta: {
                    title: "首页",
                    icon: "sfont system-home",
                    hideClose: true,
                  },
                  component: "dashboard_dashboard",
                },
              ],
            },
            {
              path: "/systemManage",
              redirect: "/systemManage/menu",
              meta: {
                title: "系统管理",
                icon: "sfont system-xitongzhuangtai",
              },
              alwayShow: true,
              children: [
                {
                  path: "menu",
                  meta: {
                    title: "菜单",
                  },
                  component: "systemManage_menu",
                },
                {
                  path: "department",
                  meta: {
                    title: "部门",
                  },
                  component: "systemManage_department",
                },
                {
                  path: "role",
                  meta: {
                    title: "角色",
                  },
                  component: "systemManage_role",
                },
                {
                  path: "user",
                  meta: {
                    title: "用户",
                  },
                  component: "systemManage_user",
                },
              ],
            },
            {
              path: "/attendance",
              redirect: "/attendance/record",
              meta: {
                title: "考勤管理",
                icon: "sfont system-xitongzhuangtai",
              },
              alwayShow: true,
              children: [
                {
                  path: "record",
                  meta: {
                    title: "考勤记录",
                  },
                  component: "attendance_record",
                },
                {
                  path: "request",
                  meta: {
                    title: "考勤报备",
                  },
                  component: "attendance_request",
                },
              ],
            },
            {
              path: "/taskManage",
              redirect: "/taskManage/work",
              meta: {
                title: "任务管理",
                icon: "sfont system-xitongzhuangtai",
              },
              alwayShow: true,
              children: [
                {
                  path: "work",
                  meta: {
                    title: "任务分配",
                  },
                  component: "taskManage_work",
                },
              ],
            },
            {
              path: "/reimburseManage",
              redirect: "/reimburseManage/reimburse",
              meta: {
                title: "报销管理",
                icon: "sfont system-xitongzhuangtai",
              },
              alwayShow: true,
              children: [
                {
                  path: "reimburse",
                  meta: {
                    title: "报销记录",
                  },
                  component: "reimburseManage_reimburse",
                },
              ],
            },
            {
              path: "/meetingManage",
              redirect: "/meetingManage/meeting",
              meta: {
                title: "会议管理",
                icon: "sfont system-xitongzhuangtai",
              },
              alwayShow: false,
              children: [
                {
                  path: "meeting",
                  meta: {
                    title: "会议记录",
                  },
                  component: "meetingManage_meeting",
                },
              ],
            },
          ],
        },
        msg: "",
      };
    },
  },
];
